/*
 *  flags.h
 *  joosVM
 *
 *  Created by Smári Waage on 11.6.2009.
 *  Copyright 2009 smari.org. All rights reserved.
 *
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *  
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. *
 */

#ifndef flags___ 
#define flags___ 

#include "constants.h"

#define FLAG_LIST(T)					\
T(version,		"-version")				\
T(keepalive,	"-keepalive")

class Flags {
public:
	static bool terminateExecution;
	static int  terminateStatus;
	
	static bool recordTrace; 
	static byte traceid;

	
	static void SetFlagsFromCommandLine(int argc, char** argv);
	
	static char* entryClass;
	static char** entryClassArgs;
	static int entryClassArgc;
	static char* classpath;
	
#define T(identifier, string) static bool identifier;
	FLAG_LIST(T)
#undef T
	
};


#endif
